package com.example.controller;


import javax.servlet.http.HttpServletRequest;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class BaseController{
	private static String user="wj";
	private static String pass="333";
	@RequestMapping("/")
	public String signUp() {
		return "signUp";
	}
	@RequestMapping("/main")
	public String login(String userName, String passWord, HttpServletRequest request) {
		System.out.println("用户名"+userName+"\t密码"+passWord); 
		if(userName.equals(user) && passWord.equals(pass)) {
			return "main";
		}
		else {
			return "error";
		}
	}
}
